/* pfs0DPlayerPositionAndLook.h
 *
 * --
 * Copyright (c) 2012, Christophe Huriaux
 * Distributed under the terms of the MIT license.
 * http://www.opensource.org/licenses/mit-license.php
 * --
 */

#ifndef MCPACKET_pfs0D_H
#define MCPACKET_pfs0D_H

#include <string>
#include <iostream>
#include <stdint.h>
#include <vector>
#include <packet/McPacket.h>

class pfs0DPlayerPositionAndLook : public McPacketFromServer
{
    double x;
    double stance;
    double y;
    double z;
    float yaw;
    float pitch;
    bool onGround;

public:
    pfs0DPlayerPositionAndLook();

    int16_t setField(uint8_t field, void* value);
    unsigned int length();

    double getX();
    double getStance();
    double getY();
    double getZ();
    float getYaw();
    float getPitch();
    bool getOnGround();

};

#endif // MCPACKET_pfs0D_H
